package com.atguigu.team.juint;

import com.atguigu.team.domain.Employee;
import com.atguigu.team.service.Data;
import com.atguigu.team.service.NameListService;
import com.atguigu.team.service.TeamException;
import org.junit.jupiter.api.Test;

public class test {
    @Test
    public void test1(){
        NameListService nameListService = new NameListService();
        Employee[] employees = nameListService.getAllEmployees();
        for(int i = 0;i < employees.length;i++){
            System.out.println(employees[i]);
        }
    }

    @Test
    public void test2(){
        NameListService nameListService = new NameListService();
        try {
            Employee emp=nameListService.getEmployee(23);
            System.out.println(emp);
        } catch (TeamException e) {
           e.printStackTrace();
        }
    }
}
